package com.karaoke.android.kege.adapter

import android.databinding.ViewDataBinding
import com.karaoke.android.data.domain.Song
import com.karaoke.android.kege.BR

/**
 * Created by allen on 2017/4/30.
 */

class BangListAdapter : SwipeGridBindingAdapter<Song>()
{
    override fun onBindBinding(binding: ViewDataBinding?, bindingVariable: Int, layoutRes: Int, position: Int, item: Song)
    {
        binding?.setVariable(BR.position, "NO.${position + 1}")
        super.onBindBinding(binding, bindingVariable, layoutRes, position, item)
    }
}
